import request from '@/utils/request'

export function getList(params) {
    return request({
        url: '/quote/ref/list',
        method: 'get',
        params
    })
}


export function save(params) {
    return request({
        url: '/quote/ref',
        method: 'post',
        params
    })
}

export function saveAll(params) {
  return request({
      url: '/quote/ref/saveAll',
      method: 'post',
      params
  })

}

export function remove(id) {
    return request({
        url: '/quote/ref',
        method: 'delete',
        params: {
            id: id
        }
    })
}


export function getSelectors(id) {
  return request({
    url: '/quote/ref/selectors/'+id,
    method: 'get'
  })
}

export function getAllSelectors(communityId, parkingId) {
  return request({
    url: '/quote/ref/allSelectors/'+communityId+'/'+parkingId,
    method: 'get'
  })
}
